#ifndef _HEXDUMP_H_
#define _HEXDUMP_H_

enum {
    DUMP_PREFIX_NONE,
    DUMP_PREFIX_ADDRESS,
    DUMP_PREFIX_OFFSET,
};

int hex_dump_to_buffer(const void *buf, int len, int rowsize, int groupsize,
                       char *linebuf, int linebuflen, int ascii);
void print_hex_dump(const char *level, const char *prefix_str, int prefix_type,
                   int rowsize, int groupsize,
                   const void *buf, int len, int ascii);
#endif
